package com.ds.esb.util.function;

import com.alibaba.fastjson.util.TypeUtils;

import java.util.List;

public class FunctionUtil {
    public static Long sum(List<Object> numbers) {
        long sumk = 0;
        for (Object number : numbers) {
            sumk = sumk + TypeUtils.castToLong(number);
        }
        return sumk;
    }
}
